package com.kerrykidz.authority.controller;

import org.apache.shiro.SecurityUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
/**
 * 
 * @ClassName: AuUserShiroController 
 * @description: 异步验证
 * @author: wolf-yansl 
 * @date: 2014年10月21日 下午5:28:05 
 * @version: V1.0
 *
 */
@Controller
@RequestMapping("/shiro/asyn")
public class AuUserShiroController {
	
	@RequestMapping("isVerify")
	@ResponseBody
	public int isVerify(String verify){
		return SecurityUtils.getSubject().isPermitted(verify)?1:0;
	}

}
